projects
/
babl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a827b7
)
type-u8: fix u8 <> double conversions for chroma type
author
Thomas Manni
<thomas.manni@free.fr>
Sun, 4 Mar 2018 09:17:07 +0000
(10:17 +0100)
committer
Øyvind Kolås
<pippin@gimp.org>
Sat, 21 Apr 2018 13:18:07 +0000
(15:18 +0200)
babl/base/type-u8.c
patch
|
blob
|
history
diff --git
a/babl/base/type-u8.c
b/babl/base/type-u8.c
index 8eeaf65347bdb4f8f17cb6f9ec6f03751f122b7b..d17590d860ba2a859968c6e7ab784c2f455bbfd4 100644
(file)
--- a/
babl/base/type-u8.c
+++ b/
babl/base/type-u8.c
@@
-110,7
+110,7
@@
convert_u8_double_scaled (BablConversion *c,
MAKE_CONVERSIONS (u8, 0.0, 1.0, 0x00, UINT8_MAX)
MAKE_CONVERSIONS (u8_luma, 0.0, 1.0, 16, 235)
-MAKE_CONVERSIONS (u8_chroma,
0.0, 1.0
, 16, 240)
+MAKE_CONVERSIONS (u8_chroma,
-0.5, 0.5
, 16, 240)
void
babl_base_type_u8 (void)